package view;

import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JDialog;

public class ImageWindow extends JDialog {

	private static final long serialVersionUID = -5335232851609263514L;

	public ImageWindow(ImageIcon ii) {
		this.setSize(600, 600);
		JButton panel = new JButton();
		panel.setIcon(ii);
		Image img = ii.getImage();
		img = img.getScaledInstance(700, 700, Image.SCALE_SMOOTH);
		ii.setImage(img);
		this.getContentPane().add(panel);
	}
}
